package com.yx.robot.sdk;

public class SdkException extends Exception{

    private int code;
    private int extraCode;

    public SdkException() {

    }

    public SdkException(int code) {
        this.code = code;
    }

    public SdkException(String message) {
        super(message);
    }

    public SdkException(Throwable cause) {
        super(cause);
    }

    public SdkException(int code, String message) {
        super(message);
        this.code = code;
    }

    public SdkException(String message, Throwable cause) {
        super(message, cause);
    }

    public SdkException(int code, int extraCode, String message) {
        super(message);
        this.code = code;
        this.extraCode = extraCode;
    }

    public SdkException(int code, int extraCode, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
        this.extraCode = extraCode;
    }

    public int getCode() {
        return code;
    }

    public int getExtraCode() {
        return extraCode;
    }
}
